﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewStaff.aspx.cs" Inherits="SWEN_HMS.StaffHousekeepingModule.ViewStaff" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <asp:Label ID="viewStaffLabel" runat="server"></asp:Label>
        <asp:GridView ID="viewStaffGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="staffID" OnRowDeleting="DeleteStaff" Width="800px">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="staffID" DataNavigateUrlFormatString="~/StaffHousekeepingModule/UpdateStaff.aspx?stfID={0}" DataTextField="staffID" HeaderText="Staff ID" SortExpression="staffID" />
                <asp:TemplateField HeaderText="Staff Name">
                    <ItemTemplate>
                        <%#Eval("staffName") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Address">
                    <ItemTemplate>
                        <%#Eval("address") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Email">
                    <ItemTemplate>
                        <%#Eval("email") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Contact Number">
                    <ItemTemplate>
                        <%#Eval("contactNo") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Access Level">
                    <ItemTemplate>
                        <%#Eval("accessLevel") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Staff Position">
                    <ItemTemplate>
                        <%#Eval("position") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ButtonType="Image" DeleteImageUrl="~/image/dustbin.png" HeaderText="Delete" ShowDeleteButton="true" />
            </Columns>
        </asp:GridView>
        Total No. of Staff:
        <asp:Label ID="stfCountLabel" runat="server"></asp:Label>
    </p>
    <p>
        <asp:Button ID="addRequestBtn" runat="server" CssClass="btnCSS" OnClick="addStaffBtn_Click" Text="Add a New Staff" />
    </p>
</asp:Content>
<asp:Content ID="Content5" runat="server" contentplaceholderid="pageTitlePHolder">
    <span class="auto-style1" style="color: #000000">View Staffs</span>
</asp:Content>

